<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Aria: ArLMS1XXPacketReceiver Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aria
   &#160;<span id="projectnumber">2.9.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classArLMS1XXPacketReceiver.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classArLMS1XXPacketReceiver-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ArLMS1XXPacketReceiver Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Given a device connection it receives packets from the sick through it.  
 <a href="classArLMS1XXPacketReceiver.html#details">More...</a></p>

<p><code>#include &lt;ArLMS1XX.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af4324335834cae1aaa4f0ea8954f4d4f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af4324335834cae1aaa4f0ea8954f4d4f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#af4324335834cae1aaa4f0ea8954f4d4f">ArLMS1XXPacketReceiver</a> ()</td></tr>
<tr class="memdesc:af4324335834cae1aaa4f0ea8954f4d4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with assignment of a device connection. <br /></td></tr>
<tr class="separator:af4324335834cae1aaa4f0ea8954f4d4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74f41e1f13c0e072ece511eb3358c89e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74f41e1f13c0e072ece511eb3358c89e"></a>
<a class="el" href="classArDeviceConnection.html">ArDeviceConnection</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#a74f41e1f13c0e072ece511eb3358c89e">getDeviceConnection</a> (void)</td></tr>
<tr class="memdesc:a74f41e1f13c0e072ece511eb3358c89e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the device this instance receives packets from. <br /></td></tr>
<tr class="separator:a74f41e1f13c0e072ece511eb3358c89e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a421d9c2b5a071e00b4ac88dcb5c06752"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a421d9c2b5a071e00b4ac88dcb5c06752"></a>
ArLMS1XXPacket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#a421d9c2b5a071e00b4ac88dcb5c06752">receivePacket</a> (unsigned int msWait=0, bool shortcut=false, bool ignoreRemainders=false)</td></tr>
<tr class="memdesc:a421d9c2b5a071e00b4ac88dcb5c06752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receives a packet from the robot if there is one available. <br /></td></tr>
<tr class="separator:a421d9c2b5a071e00b4ac88dcb5c06752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95af8fcaf1fa75c2a70170192c69b8e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95af8fcaf1fa75c2a70170192c69b8e7"></a>
ArLMS1XXPacket *&#160;</td><td class="memItemRight" valign="bottom"><b>receiveTiMPacket</b> (unsigned int msWait=0, bool shortcut=false, bool ignoreRemainders=false)</td></tr>
<tr class="separator:a95af8fcaf1fa75c2a70170192c69b8e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12df0f47c23b78140427c5e5e7194a0a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12df0f47c23b78140427c5e5e7194a0a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#a12df0f47c23b78140427c5e5e7194a0a">setDeviceConnection</a> (<a class="el" href="classArDeviceConnection.html">ArDeviceConnection</a> *conn)</td></tr>
<tr class="memdesc:a12df0f47c23b78140427c5e5e7194a0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the device this instance receives packets from. <br /></td></tr>
<tr class="separator:a12df0f47c23b78140427c5e5e7194a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86c124e524d5f0bbc6ff64c197afb695"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86c124e524d5f0bbc6ff64c197afb695"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setLaserModel</b> (int laserModel)</td></tr>
<tr class="separator:a86c124e524d5f0bbc6ff64c197afb695"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a561d1ac675262b1c03a1be7aafd22136"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a561d1ac675262b1c03a1be7aafd22136"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setmyInfoLogLevel</b> (<a class="el" href="classArLog.html#ac8cc0fb3aa323ab2a1c21340fdd1dce3">ArLog::LogLevel</a> infoLogLevel)</td></tr>
<tr class="separator:a561d1ac675262b1c03a1be7aafd22136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b4242cddc0c32734197bc7ca63372c6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b4242cddc0c32734197bc7ca63372c6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setmyName</b> (const char *name)</td></tr>
<tr class="separator:a8b4242cddc0c32734197bc7ca63372c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3a4844b44a1a094694797b88959c6d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3a4844b44a1a094694797b88959c6d6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setReadTimeout</b> (int timeout)</td></tr>
<tr class="separator:af3a4844b44a1a094694797b88959c6d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8557ab678a0908b898a49094855a3b66"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8557ab678a0908b898a49094855a3b66"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#a8557ab678a0908b898a49094855a3b66">~ArLMS1XXPacketReceiver</a> ()</td></tr>
<tr class="memdesc:a8557ab678a0908b898a49094855a3b66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a8557ab678a0908b898a49094855a3b66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a8cb71629a6d7fba2403287e64ac9778c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778c">State</a> { <a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778ca72781f10c24f26e7e61060f965ee4066">STARTING</a>, 
<a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778cab66ccc38de892b9229663982878ff3a5">DATA</a>, 
<a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778cacd32be9c1d68a61b89c9d9582b900255">REMAINDER</a>
 }</td></tr>
<tr class="separator:a8cb71629a6d7fba2403287e64ac9778c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a7b83b8b30eda848d2a1af54aa24d098b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b83b8b30eda848d2a1af54aa24d098b"></a>
<a class="el" href="classArDeviceConnection.html">ArDeviceConnection</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>myConn</b></td></tr>
<tr class="separator:a7b83b8b30eda848d2a1af54aa24d098b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfca6e471d96e2f8879a0dc0c9d92ca6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfca6e471d96e2f8879a0dc0c9d92ca6"></a>
<a class="el" href="classArLog.html#ac8cc0fb3aa323ab2a1c21340fdd1dce3">ArLog::LogLevel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>myInfoLogLevel</b></td></tr>
<tr class="separator:acfca6e471d96e2f8879a0dc0c9d92ca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2d300c2cab4034bf9bf887b8519b190"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2d300c2cab4034bf9bf887b8519b190"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myLaserModel</b></td></tr>
<tr class="separator:af2d300c2cab4034bf9bf887b8519b190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bc773a1bd4008197a2d561f2af80f5e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc773a1bd4008197a2d561f2af80f5e"></a>
char&#160;</td><td class="memItemRight" valign="bottom"><b>myName</b> [1024]</td></tr>
<tr class="separator:a9bc773a1bd4008197a2d561f2af80f5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07de529b650147805d943bcdcac3f929"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07de529b650147805d943bcdcac3f929"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>myNameLength</b></td></tr>
<tr class="separator:a07de529b650147805d943bcdcac3f929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a385e378ac0eaa811ff3fdc1e8889528b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a385e378ac0eaa811ff3fdc1e8889528b"></a>
ArLMS1XXPacket&#160;</td><td class="memItemRight" valign="bottom"><b>myPacket</b></td></tr>
<tr class="separator:a385e378ac0eaa811ff3fdc1e8889528b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a475ac6ed7fd5fda1b058c98e49aa73aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a475ac6ed7fd5fda1b058c98e49aa73aa"></a>
char&#160;</td><td class="memItemRight" valign="bottom"><b>myReadBuf</b> [100000]</td></tr>
<tr class="separator:a475ac6ed7fd5fda1b058c98e49aa73aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a460c28b43420001c8889398f187e19ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a460c28b43420001c8889398f187e19ea"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myReadCount</b></td></tr>
<tr class="separator:a460c28b43420001c8889398f187e19ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b7d1fd1907fe4a6cc7da2289c2431b0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b7d1fd1907fe4a6cc7da2289c2431b0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myReadTimeout</b></td></tr>
<tr class="separator:a0b7d1fd1907fe4a6cc7da2289c2431b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0709770dc7b42767b587a174d078b7ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0709770dc7b42767b587a174d078b7ec"></a>
<a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778c">State</a>&#160;</td><td class="memItemRight" valign="bottom"><b>myState</b></td></tr>
<tr class="separator:a0709770dc7b42767b587a174d078b7ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Given a device connection it receives packets from the sick through it. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a8cb71629a6d7fba2403287e64ac9778c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classArLMS1XXPacketReceiver.html#a8cb71629a6d7fba2403287e64ac9778c">ArLMS1XXPacketReceiver::State</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a8cb71629a6d7fba2403287e64ac9778ca72781f10c24f26e7e61060f965ee4066"></a>STARTING&#160;</td><td class="fielddoc">
<p>Looking for beginning. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a8cb71629a6d7fba2403287e64ac9778cab66ccc38de892b9229663982878ff3a5"></a>DATA&#160;</td><td class="fielddoc">
<p>Read the data in a big whack. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a8cb71629a6d7fba2403287e64ac9778cacd32be9c1d68a61b89c9d9582b900255"></a>REMAINDER&#160;</td><td class="fielddoc">
<p>Have extra data from reading in data. </p>
</td></tr>
</table>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>ArLMS1XX.h</li>
<li>ArLMS1XX.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classArLMS1XXPacketReceiver.html">ArLMS1XXPacketReceiver</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
